﻿@model IEnumerable<Bordspil.Models.GameInstance>
@{
    ViewBag.Title = "Leikir";
}
@section featured {


<div id="game-content">

	<div id="TicTacToe" class="game">
	
	</div>

	<div id="Kindo" class="game">
		
	</div>	

<div class="this-game">
    @if (Request.IsAuthenticated) {
        <a href="#" id="new-game">Bua til nyjan leik</a>@*
	    @Html.ActionLink("Bua til nyjan leik", "Index", "TicTacToe", new { }, null)
        *@<ul id="games-inprogress">
        <li><span id="game-inprogress-nr"></span> Leikir i gangi</li>
         </ul>
    } else {
         <li>@Html.ActionLink("Skrá inn", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" }) til að spila leik</li>
    }
		
	<ul class="about-game">
        <li>Um leikin</li>
        <li>Einkun: <span id="game-rating"></span></li>
        <li id="about-game">Geggjadur leikur prófaðu hann bara !
        </li>

	</ul>
</div>

</div>

}    



